package com.faith.dynamic.service.impl;

import com.faith.dynamic.annotation.FaithSchedule;
import com.faith.dynamic.enums.DynamicOperationType;
import com.faith.dynamic.model.AddForDynamicDto;
import com.faith.dynamic.model.CancelForDynamicDto;
import com.faith.dynamic.model.UpdateForDynamicDto;
import com.faith.dynamic.service.DynamicScheduleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName DynamicScheduleService$
 * @Description 动态定时任务服务类
 * @Author faith$
 * @Date 2019/8/12 10:45
 * @Version 1.0
 **/
@Service
public class DynamicScheduleServiceImpl implements DynamicScheduleService {
    @Override
    @FaithSchedule(scheduleMethod = "add",dynamicOperationType = DynamicOperationType.ADD)
    public void add(AddForDynamicDto addForDynamicDto){

    }

    @Override
    @FaithSchedule(scheduleMethod = "list",dynamicOperationType = DynamicOperationType.LIST)
    public List<String> list(){

        return null;
    }
    @Override
    @FaithSchedule(scheduleMethod = "update",dynamicOperationType = DynamicOperationType.UPDATE)
    public void update(UpdateForDynamicDto updateForDynamicDto){

    }
    @Override
    @FaithSchedule(scheduleMethod = "cancel",dynamicOperationType = DynamicOperationType.CANCEL)
    public void cancel(CancelForDynamicDto cancelForDynamicDto){

    }
}
